package com.zmn.oms.persistence.interfaces.ins;

import com.zmn.oms.model.entity.ins.InsOrderMaster;
import com.zmn.oms.model.entity.ins.InsOrderMasterQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类描述：保险单
 *
 * @author liuying
 * @date 2019/01/23 10:12
 */
public interface InsOrderMasterDao {

    /**
     * 根据订单ID查询
     *
     * @param orderId
     * @return
     */
    List<InsOrderMaster> listInsOrderMasterByOrderId(@Param("orderId") Long orderId);

    /**
     * 根据订单ID和工程师ID查询
     *
     * @param insOrderMasterQuery
     * @return
     */
    List<InsOrderMaster> listInsOrderMaster(InsOrderMasterQuery insOrderMasterQuery);

    /**
     * 根据ID修改
     *
     * @param insOrderMaster
     */
    void updateInsOrderMasterByKey(InsOrderMaster insOrderMaster);

    /**
     * 添加
     *
     * @param insOrderMaster
     * @return
     */
    int insertInsOrderMaster(InsOrderMaster insOrderMaster);
}